<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>添加菜单项</title>
</head>
<body>
	<form action="__URL__/insert" method="post">
		菜单名称：<input type="text" name="name"><br>
		菜单路径：<input type="text" name="link"><br>
		上层菜单项：
		<select size="20" name="pid">
			<option value="0" selected="selected">顶层菜单</option>
			<volist name="milist" id="row">
				<option value="{$row['id']}">
					<php>
						for($i=0;$i<$row['marginnum']/5;$i++){
							echo "&nbsp;";
						}
					</php>
					{$row['name']}
				</option>
			</volist>
		</select>
		<input type="hidden" name="menuid" value="1">
		<input type="submit" value="保存">
	</form>
</body>
</html>